import request from '@/utils/request'
export default {

    //带条件的分页查询课程
    getCourseListForeground(current,limit,courseForegroundVo) {
        return request({
            url: `/eduservice/courseforeground/getCourseListForeground/${current}/${limit}`,
            method: 'post',
            data:courseForegroundVo
        })
    },
    //课程分类列表
    getAllSubject() {
        return request({
            url: `/eduservice/subject/getAllSubject`,
            method: 'get'
        })
    },
    //获取课程详情
    getCourseInfoForeground(courseId){
        return request({
            url:`/eduservice/courseforeground/getCourseInfoForeground/${courseId}`,
            method:'get'
        })
    }
    
}